﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Action2.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.Activity.Action2" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
    <link href="/css/pagination.css" rel="stylesheet" type="text/css" />
    <link href="/scripts/select2/select2-3.5.1/select2.css" rel="stylesheet" type="text/css" />
<link href="/scripts/select2/skin/select2_ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="/scripts/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.handlers.js"></script>
<script type="text/javascript" charset="utf-8" src="/editor/kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/editor/lang/zh_CN.js"></script>
<script type="text/javascript" src="/admin/js/layout.js"></script>
<link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();                
        //初始化上传控件
        $(".upload-img").each(function () {
            $(this).InitSWFUpload({ sendurl: "/tools/upload_ajax.ashx", flashurl: "/scripts/swfupload/swfupload.swf" });
        });
        $(".upload-album").each(function () {
            $(this).InitSWFUpload({ btntext: "批量上传", btnwidth: 66, single: false, water: true, thumbnail: true, filesize: "2048", sendurl: "/tools/upload_ajax.ashx", flashurl: "/scripts/swfupload/swfupload.swf", filetypes: "*.jpg;*.jpge;*.png;*.gif;" });
        });
        $(".attach-btn").click(function () {
            showAttachDialog();
        });
        //设置封面图片的样式
        $(".photo-list ul li .img-box img").each(function () {
            if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                $(this).parent().addClass("selected");
            }
        });
    });   
    //时间范围
    $(function () {
        var starttimeid_diy = '<%= txtStartTime_diy.ClientID%>';
        var endtimeid_diy = '<%= txtEndTime_diy.ClientID %>';
        //        $('#' + ddl_IsSenate).change(function () {
        //            var DropDownList1_Text = $(this).find(":selected").val(); //text(); //ddl_IsSenate.options[index].value;
        //            if (DropDownList1_Text == 'false') {
        //                document.getElementById('one').style.display = 'block';
        //                document.getElementById('more').style.display = 'none';
        //            }
        //            else {
        //                document.getElementById('one').style.display = 'none';
        //                document.getElementById('more').style.display = 'block';
        //            }
        //        });
        //无参二
        $('#' + starttimeid_diy).focus(function () {
            WdatePicker({ maxDate: '#F{$dp.$D(\'' + endtimeid_diy + '\',{d:-1});}', dateFmt: 'yyyy-MM-dd HH:mm:ss' })
        });
        $('#' + endtimeid_diy).focus(function () {
            WdatePicker({ minDate: '#F{$dp.$D(\'' + starttimeid_diy + '\',{d:0});}', dateFmt: 'yyyy-MM-dd HH:mm:ss' })
        });
    });
    
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="List.aspx" class="back"><i></i><span>返回列表页</span></a>
  <a href="/admin/center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>管理</span>
  <i class="arrow"></i>
  <span></span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div class="content-tab-wrap">
  <div id="floatHead" class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a href="javascript:;" onclick="tabs(this);" class="selected">无参二维码</a></li>
      </ul>
    </div>
  </div>
</div>

<div class="tab-content" id="tab2">

  <dl style="display:none">
    <dt>活动链接</dt>
    <dd>
        <asp:TextBox ID="txtUrl" runat="server" CssClass="input normal " datatype="*1-9999" errormsg="" sucmsg=" "  ></asp:TextBox> 
        生成路径：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
        请输入解码路径：<asp:TextBox ID="TextBox2" CssClass="input normal" Width="800px" datatype="*1-9999" errormsg="" sucmsg=" "  runat="server" 
        Text="D:\C#Work\桂林交接项目\7-26美赞臣测试\美赞臣二维码-正式版\Web\ShareMarking.Web\upload\20160816\2109319890.png"></asp:TextBox> <br />
        <asp:Button ID="Button1" runat="server" Text="解码" OnClick="Decode_Click"/><br />
        解码结果：<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        <span class="Validform_checktip"></span>
    </dd>
  </dl>
  <dl>
    <dt>二维码名称</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_Name" runat="server" CssClass="input normal" datatype="/^[a-zA-Z0-9_\u4e00-\u9fa5]{1,100}$/" errormsg="活动名称只能包含汉字、数字、字母、下划线且1-100个字符" sucmsg=" "></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
  
   <dl>
    <dt>负责人</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_Manager" runat="server" CssClass="input normal" datatype="*1-100" errormsg="" sucmsg=" "></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
  <dl>
    <dt>活动描述</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_Desc" runat="server" CssClass="input normal" errormsg="" sucmsg=" "></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
 
  <dl>
    <dt>开始时间</dt>
    <dd>
      <div class="input-date">
        <asp:TextBox ID="txtStartTime_diy" runat="server" CssClass="input date"  datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}\s{1}(\d{1,2}:){2}\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
        <i>日期</i>
      </div>
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
  <dl>
    <dt>结束时间</dt>
    <dd>
      <div class="input-date">
        <asp:TextBox ID="txtEndTime_diy" runat="server" CssClass="input date" datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}\s{1}(\d{1,2}:){2}\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
        <i>日期</i>
      </div>
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
  <dl style=" display:none">
    <dt>微信图文标题</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_wxTitle" runat="server" CssClass="input normal" datatype="" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
  <dl style=" display:none">
    <dt>微信图文描述</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_wxDesc" runat="server" CssClass="input normal" datatype="" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl> 
  <dl>
    <dt>活动前微信图文链接</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_beforeurl" runat="server" CssClass="input normal " datatype="/^(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]$/" errormsg="URL必须以http://、https://、ftp://开头且不包含中文" sucmsg=" "></asp:TextBox> 
      <span class="Validform_checktip">注:活动开始时间“大于”当前时间，系统默认获取该路径</span>
    </dd>
  </dl>
 <%-- <dl>
    <dt>活动中微信图文链接</dt>
    <dd>
        <asp:TextBox ID="txt_A_wxUrl" runat="server" CssClass="input normal " datatype="*1-9999" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl>--%>
  <dl>
    <dt>活动中微信图文链接</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_Url" runat="server" CssClass="input normal " datatype="/^(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]$/" errormsg="URL必须以http://、https://、ftp://开头且不包含中文" sucmsg=" "></asp:TextBox> 
      <span class="Validform_checktip">注:此项必填，是填写您想要跳转的路径</span>
    </dd>
  </dl>
  <dl>
    <dt>活动后微信图文链接</dt>
    <dd>
        <asp:TextBox ID="txt_Diy_afterurl" runat="server" CssClass="input normal " datatype="/^(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]$/" errormsg="URL必须以http://、https://、ftp://开头且不包含中文" sucmsg=" "></asp:TextBox> 
      <span class="Validform_checktip">注:活动开始时间“小于”当前时间，系统默认获取该路径</span>
    </dd>
  </dl>
  <dl style="display:none">
    <dt>SACode</dt>
    <dd>
        <asp:TextBox ID="txtsacode" runat="server" CssClass="input normal " datatype="*1-100" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip"></span>
    </dd>
  </dl>
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-list">
    <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" 
          onclick="btnSubmit_Click"/> 
          <asp:Button ID="test" runat="server" Text="提交保存无参二维码" CssClass="btn"  Visible="false"
          onclick="test_Click"/>  
    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
  </div>
  <div class="clear"></div>
</div>
<!--/工具栏-->

</form>
</body>
</html>
